package com.example.cheeseerpadmin.bus.service.impl;

import com.example.cheeseerpadmin.bus.entity.BusGoods;
import com.example.cheeseerpadmin.bus.mapper.BusGoodsMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.cheeseerpadmin.bus.service.BusGoodsService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.Collection;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author cheese
 * @since 2022-02-14
 */
@Service
@Transactional
public class BusGoodsServiceImpl extends ServiceImpl<BusGoodsMapper, BusGoods> implements BusGoodsService {
    /**
     * 重现方法，给缓存提供切入点
     */
    @Override
    public boolean save(BusGoods entity) {
        return super.save(entity);
    }

    @Override
    public boolean updateById(BusGoods entity) {
        return super.updateById(entity);
    }

    @Override
    public BusGoods getById(Serializable id) {
        return super.getById(id);
    }

    @Override
    public boolean removeById(Serializable id) {
        return super.removeById(id);
    }

    @Override
    public boolean removeByIds(Collection<? extends Serializable> idList) {
        return super.removeByIds(idList);
    }
}
